package com.message.register;

import com.message.Message;
import com.message.constant.Host;
import com.message.constant.MessageType;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author linyu.dai
 * @project rpc
 * @description 注册响应
 * @creat 2022/11/27 15:33:56
 */
@Data
public class RpcRegisterResponse extends Message {

    private Map<String, Host> registerInfo = new HashMap<>();

    private List<String> errorMessage = new ArrayList<>();

    @Override
    public int getMessageType() {
        return MessageType.RPC_REGISTER_RESPONSE;
    }
}
